package sctu.edu.java.year2016.team01.xuhanmei.day20160523.practice;

/**
 * Created by Administrator on 2016/5/23.
 */
import java.util.Arrays;
public class SortShuZu {
    public static void main(String[] args) {
        int a[]=new int[]{1,2,33,22,334,55,14,78,};
        System.out.println("原来的数组元素是：");
        for(int i=0;i<a.length;i++){
            System.out.print(a[i]+"  ");
        }
        Arrays.sort(a);
        System.out.println("排序后的数组是：");
        for(int j=0;j<a.length;j++){
            System.out.print(a[j]+"  ");
        }

    }
}
